import { nanoid } from "nanoid";

export const getNanoid = () => {
    let myID = localStorage.getItem('anoid')
    if (!myID) {
        myID = nanoid()
        localStorage.setItem('anoid', myID)
    }

    return myID
}